package com.qsw.httpnetlib.net.core.callback;

import android.util.Log;

import java.io.InputStream;

/**
 * OnNetCallback接口的简单实现
 */
public class OnNetCallbackAdapter implements OnNetCallback {
    private static final String TAG = "TAG_OnNetCallbackAdapter";

    @Override
    public void onSuccess(String data) {

    }

    @Override
    public void onSuccess(InputStream is, int length) {

    }

    @Override
    public void onFailure(int code, String msg) {
        Log.e(TAG, "onFailure : " + msg);
    }

    @Override
    public void onError(Exception e) {
        Log.e(TAG, "onError - " + e);
        e.printStackTrace();
    }

    @Override
    public void onComplete() {

    }
}
